package com.yaoxuguang.concurrence.synchronizedpackage.LockUnpenByException;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.synchronizedpackage.LockUnpenByException
 * @Description: 测试抛异常时，锁自动释放
 * @date 2018年12月18日10:47
 */
public class Run {
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA a = new ThreadA(service);
        a.start();
        ThreadB b = new ThreadB(service);
        b.start();
    }
}
